<div id="menu">
<?php if (!$session->check('User')){ ?>
<ul>
	<li class="<?php if($html->action=='login') echo "act"; ?>">
		<?php echo $html->link(
			$html->image('lock.png', array('alt'=> __($html->action, true), 'border'=>"0")).'Login',
			'/',
			array('target'=>'_parent'), null, false
			);
		?>
	</li>
	<li class="<?php if($html->action=='register') echo "act"; ?>">
		<?php echo $html->link(
			$html->image('user.png', array('alt'=> __($html->action, true), 'border'=>"0")).'Register',
			'/users/register',
			array('target'=>'_parent'), null, false
			);
		?>
	</li>
</ul>
<?php } else {  ?>
<ul>
	<li class="<?php if($html->action=='home') echo "act"; ?>">
		<?php echo $html->link(
			$html->image('world.png', array('alt'=> __($html->action, true), 'border'=>"0")).'Home',
			'/',
			array('target'=>'_parent'), null, false
			);
		?>
	</li>
	<li class="<?php if($html->action=='edit') echo "act"; ?>">
		<?php echo $html->link(
			$html->image('wrench.png', array('alt'=> __($html->action, true), 'border'=>"0")).'Preferences',
			'/users/edit',
			array('target'=>'_parent'), null, false
			);
		?>
	</li>
</ul>
<?php } ?>
</div>